package com.zhuanzhuan.hero.user.vo.auth;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @ClassName UserAuthResultVO
 * @Description
 * @Author hanjunjun
 * @Date 2024/6/28 10:56
 */
@Data
@AllArgsConstructor
public class UserAuthResultVO {

    private static final Integer SUCCESS = 1;
    private static final Integer FAIL = 0;

    /**
     * 1-成功 0-失败
     */
    private Integer result;

    /**
     * 认证失败的文案
     */
    private String tips;

    public UserAuthResultVO(Integer result) {
        this.result = result;
    }

    public static UserAuthResultVO buildSuccess() {
        return new UserAuthResultVO(SUCCESS);
    }

    public static UserAuthResultVO buildFail(String tips) {
        return new UserAuthResultVO(FAIL, tips);
    }
}
